/*
 * 编辑用户
 */
define(function(require, exports, module) {
	require("common/umei.dev");
	var url = "user_update_self.do";
	umei.initForm({
		formObj : $("#user_form")
	});
	$("#saveBtn").click(function() {
		if (umei.verification({
			formObj : $("#user_form")
		})) {
			var data = umei.serialize($("#user_form"));
			umei.postRequest({
				async : true,
				url : url,
				data : data,
				fun : function(response) {
					umei.tipMsg({
						type : "success",
						content : "保存成功",
						timeout : 1500,
						fun : function() {
							document.location.href = "../home.do";
						}
					});
				}
			});
		}
	});
});
